﻿using Naruto.TaskManagement.Entitys.Models;
using Naruto.TaskManagement.Entitys.VM;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Naruto.TaskManagement.IRepository
{
    /// <summary>
    /// 聊天会话状态
    /// </summary>
    public interface IChatSessionStateRepository
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="reciveUserId"></param>
        /// <returns></returns>
        Task<GetChatSessionStateViewModel> Get(string userId, string reciveUserId);

        /// <summary>
        /// 查询id信息
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="reciveUserId"></param>
        /// <returns></returns>
        Task<string> GetId(string userId, string reciveUserId);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        Task Add(ChatSessionState info);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="chatSessionState"></param>
        /// <returns></returns>
        Task Update(ChatSessionState chatSessionState);
        /// <summary>
        /// 获取会话信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<List<GetListByUserIdViewModel>> GetListByUserId(string userId);

        /// <summary>
        /// 根据id删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteById(string id);
    }
}
